<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<h3>Modifica il post</h3>
<form name="postForm" action="./private/UpdatePost" method="POST">
Titolo: <input type="text" name="titlePost" size="70" value="<c:out value="${post.title}" />" class="textinput" />
<br>
Categoria: <select name="postCategory" class="textinput">
				<c:forEach var="cat" items="${postCategoryList}" varStatus="status">
				<option value="${cat.id}" <c:if test="${cat.id==post.category}"> selected="selected" </c:if>>
				<c:out value="${cat.name}" /></option>
				</c:forEach>	
				</select>
<br>Post:<br><textarea name="contentPost">${post.content}</textarea>
<input type="hidden" value="<c:out value="${post.postID}"/>" name="postID"/>
<input type="hidden" value="<c:out value="${blog.blogID}"/>" name="blogID"/>
<input type="hidden" value="<c:out value="${blog.blogID}"/>" name="currentPage"/>
<input type="hidden" value="<c:out value="${post.counterPostView}"/>" name="counterPostView"/>
<input type="hidden" value="" name="imgURL"/>
<br><input class="submit" type="submit" value="Modifica Post"><small>Press ESC to close</small>

</form>